/**
 * 進入房間命令
 * 
 * @author LuoDong
 * @email luo4521@online.net.tw
 * 2010-2-7 10:03
 */
package com.addcn.texas.control {
	import com.addcn.fog.control.ICommand;
	import com.addcn.fog.control.SimpleCommand;
	
	import com.addcn.texas.model.*;		
	import com.addcn.common.utils.DestroyMemory;
	
	public class RemoveGameModelCommand extends SimpleCommand implements ICommand {
		
		public override function execute(r_data:Object = null):void {		
			_removeModle()
		}
		
		/**
		 * 移除model
		 */
		private function _removeModle() : void
		{
			modelLocator.removeModel(RoomModel);
			modelLocator.removeModel(RoomUserModel);
			modelLocator.removeModel(GameInfoModel);
		}
	}
}
